diff options
| author | Adam Soltys <[email protected]> | 2023-01-20 11:39:55 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-20 11:39:55 -0800 |
| commit | 681e307d00e38ee9bc336e547660f56e71b646c6 (patch) | |
| tree | bc887f9e6f8e055e53bbc6a9330c83708957c937 /src/routes/(app)/[username]/payments | |
| parent | f7d9ec75ac19664fdfffd430ece29f288d6d4819 (diff) | |
| download | coinos-ui-681e307d00e38ee9bc336e547660f56e71b646c6.tar.gz coinos-ui-681e307d00e38ee9bc336e547660f56e71b646c6.zip | |
rename endpoints
Diffstat (limited to 'src/routes/(app)/[username]/payments')
| -rw-r--r-- | src/routes/(app)/[username]/payments/[...page]/+page.svelte | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/routes/(app)/[username]/payments/[...page]/+page.svelte b/src/routes/(app)/[username]/payments/[...page]/+page.svelte index f6de4c27..24f7cf6e 100644 --- a/src/routes/(app)/[username]/payments/[...page]/+page.svelte +++ b/src/routes/(app)/[username]/payments/[...page]/+page.svelte @@ -11,6 +11,13 @@ export let data; + const types = { + internal: 'internal', + bitcoin: 'bitcoin', + lightning: 'lightning', + pot: 'pot' + }; + let { start, end, user } = data; let change = ({ target: { value } }) => goto(value); let link = (tx) => { @@ -131,17 +138,17 @@ </div> <div class="flex my-auto"> - {#if tx.redeemcode} - <a href={`/voucher/${tx.redeemcode}`}> + {#if tx.type === types.pot} + <a href={`/pot/${tx.pot}`}> <div class="text-secondary flex"> <div class="my-auto mr-1"> <img src="/icons/logo-symbol.svg" class="w-12 border-4 border-transparent" /> </div> - <div class="my-auto">Voucher</div> + <div class="my-auto">Pot</div> </div> </a> - {:else if tx.with} + {:else if tx.type === types.internal} <a href={`/${tx.with.username}`}> <div class="flex"> <div class="my-auto"> |
